package com.ruoyi.deeplearn.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.gis.domain.GisLayer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模型预测对象 deep_forecast
 *
 * @author rww
 * @date 2024-09-14
 */
public class DeepForecast extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 模块ID */
    private Long id;

    /** 模型id */
    @Excel(name = "模型id")
    private Long modelId;

    /** 版本id */
    @Excel(name = "版本id")
    private Long modelVersionId;

    /** 部署id */
    @Excel(name = "部署id")
    private Long deployId;

    /** 业务模块id */
    @Excel(name = "业务模块id")
    private Long moduleId;

    /** 模块网络结构id */
    @Excel(name = "模块网络结构id")
    private Long moduleNetId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileExt;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 存储bucket */
    @Excel(name = "存储bucket")
    private String bucket;

    /** uuid名称 */
    @Excel(name = "uuid名称")
    private String objectName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 预测状态：10  20  30   40 */
    @Excel(name = "预测状态：10  20  30   40")
    private Integer status;
    public static final Integer STATUS_PREDICT = 20;
    public static final Integer STATUS_PREDICT_SUCCESS = 30;
    public static final Integer STATUS_PREDICT_ERROR = 40;
    /** 文件地址 */
    @Excel(name = "文件地址")
    private String url;

    /** tif jpeg文件对象 */
    @Excel(name = "tif jpeg文件对象")
    private String jpgObjectName;

    /** 是否是栅格数据 */
    @Excel(name = "是否是栅格数据")
    private Integer raster;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;
    private Integer publish;//10 未发布  20 已发布
    public static int publish_no = 10;
    public static int publish_ok = 20;
    private Long layerId;//layer_id
    private GisLayer layer;
    private Double minx;
    private Double miny;
    private Double maxx;
    private Double maxy;

    private Long lastResultId;//last_result_id
    DeepForecastResult forecastResultLast;

    private String type;//1 用户自己的任务  2：通过任务创建的(不显示)
    public static String type_user ="1";
    public static String type_task ="2";
    ////////////////////////////////////////


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public DeepForecastResult getForecastResultLast() {
        return forecastResultLast;
    }

    public void setForecastResultLast(DeepForecastResult forecastResultLast) {
        this.forecastResultLast = forecastResultLast;
    }

    public GisLayer getLayer() {
        return layer;
    }

    public void setLayer(GisLayer layer) {
        this.layer = layer;
    }

    public Long getLastResultId() {
        return lastResultId;
    }

    public void setLastResultId(Long lastResultId) {
        this.lastResultId = lastResultId;
    }

    public Double getMinx() {
        return minx;
    }

    public void setMinx(Double minx) {
        this.minx = minx;
    }

    public Double getMiny() {
        return miny;
    }

    public void setMiny(Double miny) {
        this.miny = miny;
    }

    public Double getMaxx() {
        return maxx;
    }

    public void setMaxx(Double maxx) {
        this.maxx = maxx;
    }

    public Double getMaxy() {
        return maxy;
    }

    public void setMaxy(Double maxy) {
        this.maxy = maxy;
    }

    public Integer getPublish() {
        return publish;
    }

    public void setPublish(Integer publish) {
        this.publish = publish;
    }

    public Long getLayerId() {
        return layerId;
    }

    public void setLayerId(Long layerId) {
        this.layerId = layerId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }
    public void setModelVersionId(Long modelVersionId)
    {
        this.modelVersionId = modelVersionId;
    }

    public Long getModelVersionId()
    {
        return modelVersionId;
    }
    public void setDeployId(Long deployId)
    {
        this.deployId = deployId;
    }

    public Long getDeployId()
    {
        return deployId;
    }
    public void setModuleId(Long moduleId)
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId()
    {
        return moduleId;
    }
    public void setModuleNetId(Long moduleNetId)
    {
        this.moduleNetId = moduleNetId;
    }

    public Long getModuleNetId()
    {
        return moduleNetId;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFileExt(String fileExt)
    {
        this.fileExt = fileExt;
    }

    public String getFileExt()
    {
        return fileExt;
    }
    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }
    public void setBucket(String bucket)
    {
        this.bucket = bucket;
    }

    public String getBucket()
    {
        return bucket;
    }
    public void setObjectName(String objectName)
    {
        this.objectName = objectName;
    }

    public String getObjectName()
    {
        return objectName;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setJpgObjectName(String jpgObjectName)
    {
        this.jpgObjectName = jpgObjectName;
    }

    public String getJpgObjectName()
    {
        return jpgObjectName;
    }
    public void setRaster(Integer raster)
    {
        this.raster = raster;
    }

    public Integer getRaster()
    {
        return raster;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("modelId", getModelId())
            .append("modelVersionId", getModelVersionId())
            .append("deployId", getDeployId())
            .append("moduleId", getModuleId())
            .append("moduleNetId", getModuleNetId())
            .append("fileName", getFileName())
            .append("fileExt", getFileExt())
            .append("fileSize", getFileSize())
            .append("bucket", getBucket())
            .append("objectName", getObjectName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("url", getUrl())
            .append("jpgObjectName", getJpgObjectName())
            .append("raster", getRaster())
            .append("userId", getUserId())
            .toString();
    }
}
